# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libngf-qt
pkgver=0.8.1
pkgrel=0
pkgdesc="Qt-based client for NGF daemon (Non-Graphic Feedback)."
url="https://github.com/sailfishos/libngf-qt"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtfeedback-dev
	"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libngf-qt/archive/$pkgver/libngf-qt-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	qmake-qt5 \
		PREFIX=/usr
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="
882d7561ccaf23735ee224e672ddb9c777c892244c547364fb579f1888ee45cefae34f910841a7c208fa063da1b7ce1e893711ddeeccf91f7616ae4f1a98338e  libngf-qt-0.8.1.tar.gz
"
